const user = require("./user");
const uuid = require("node-uuid");

user.insertMany([{
    username:"张三",
    password:123456,
    age:18,
    userid:"user-" + uuid.v1()
},{
    username:"李四",
    password:123456,
    age:32,
    userid:"user-" + uuid.v1()
},{
    username:"王二",
    password:123456,
    age:28,
    userid:"user-" + uuid.v1()
},{
    username:"赵五",
    password:123456,
    age:16,
    userid:"user-" + uuid.v1()
}], (err)=>{
    if(!err){
        console.log("插入成功")
    }else{
        console.log(err);
    }
});

// console.log(uuid.v1());


